import request from '@/config/axios'

//创建等级维护
export const levelCreate = async (data) => {
  return await request.post({
    url: '/amp/level/create',
    data
  })
}
//删除等级
export const levelDelete = async (id) => {
  return await request.delete({
    url: '/amp/level/delete?id=' + id
  })
}

//批量删除等级
export const levelBatchDelete = async (data) => {
  return await request.delete({
    url: '/amp/level/deleteIds',
    data
  })
}

//获得等级
export const levelGet = async (id) => {
  return await request.get({
    url: '/amp/level/get?id=' + id
  })
}
//获得等级分页
export const levelPage = async (params) => {
  return await request.getOriginal({
    url: '/amp/level/page',
    params
  })
}
//等级修改
export const levelUpdate = async (data) => {
  return await request.put({
    url: '/amp/level/update',
    data
  })
}
